package cn.unknowpupil.service.system;


import cn.unknowpupil.domain.system.SysJobLog;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * Created at 2020-11-06 by  w10g <br>
 * Initialize SysJobLog  ... <br>
 * 定时任务调度日志表 核心业务处理接口
 *
 * @author unknowpupil
 * @since 0.0.1
 */
public interface ISysJobLogService extends IService<SysJobLog> {


    /**
     * 获取quartz调度器日志的计划任务
     *
     * @param current   {@code int} 页码
     * @param size      {@code int} 笔数
     * @param sysJobLog {@link SysJobLog}
     * @return 调度任务日志集合
     */
    IPage<SysJobLog> page(int current, int size, SysJobLog sysJobLog);



    /**
     * 新增任务日志
     *
     * @param jobLog 调度日志信息
     * @return boolean
     */
    boolean addJobLog(SysJobLog jobLog);

    /**
     * 批量删除调度日志信息
     *
     * @param logIds 需要删除的日志ID
     * @return 结果
     */
    boolean deleteJobLogByIds(Long[] logIds);


    /**
     * 清空任务日志
     */
    void cleanJobLog();
}
